/**
 * 资产管理路由
 */
export default [
  {
    path: '/asset',
    meta: { requiresAuth: true },
    children: [
      {
        path: 'list',
        name: 'AssetList',
        component: () => import('@/views/asset/AssetList.vue'),
        meta: { title: '资产列表' }
      },
      {
        path: 'create',
        name: 'AssetCreate',
        component: () => import('@/views/asset/AssetForm.vue'),
        meta: { title: '新增资产' }
      },
      {
        path: 'edit/:id',
        name: 'AssetEdit',
        component: () => import('@/views/asset/AssetForm.vue'),
        meta: { title: '编辑资产' }
      },
      {
        path: 'detail/:id',
        name: 'AssetDetail',
        component: () => import('@/views/asset/AssetDetail.vue'),
        meta: { title: '资产详情' }
      },
      {
        path: 'inventory',
        name: 'AssetInventory',
        component: () => import('@/views/asset/AssetInventory.vue'),
        meta: { title: '资产盘点' }
      },
      {
        path: 'transfer',
        name: 'AssetTransfer',
        component: () => import('@/views/asset/AssetTransfer.vue'),
        meta: { title: '资产调拨' }
      },
      {
        path: 'maintenance',
        name: 'AssetMaintenance',
        component: () => import('@/views/asset/AssetMaintenance.vue'),
        meta: { title: '维修保养' }
      },
      {
        path: 'disposal',
        name: 'AssetDisposal',
        component: () => import('@/views/asset/AssetDisposal.vue'),
        meta: { title: '资产报废' }
      },
      {
        path: 'statistics',
        name: 'AssetStatistics',
        component: () => import('@/views/asset/AssetStatistics.vue'),
        meta: { title: '资产统计' }
      }
    ]
  }
]

